using System;

 namespace ClassEntities 
{
	 [Serializable]
	 public class tblBaiThi
	{
	private int stt;
	private int idKQT;
	private int idCHT;
	private string dapancuoicung;
	private string noidung;
	public tblBaiThi()
	{}
	public tblBaiThi(int stt,int idKQT,int idCHT,string dapancuoicung,string noidung)
	{
	this.stt = stt;
	this.idKQT = idKQT;
	this.idCHT = idCHT;
	this.dapancuoicung = dapancuoicung;
	this.noidung = noidung;
	}
	public int Stt{
	get { return this.stt;}
	set { if(value==null) 
		throw new Exception("stt not allow nullvalue.");
		this.stt=value;
	}	}
	public int IdKQT{
	get { return this.idKQT;}
	set {this.idKQT=value;}
	}
	public int IdCHT{
	get { return this.idCHT;}
	set {this.idCHT=value;}
	}
	public string Dapancuoicung{
	get { return this.dapancuoicung;}
	set {this.dapancuoicung=value;}
	}
	public string Noidung{
	get { return this.noidung;}
	set {this.noidung=value;}
	}
	public override string ToString(){
	return this.stt+"; "+this.idKQT+"; "+this.idCHT+"; "+this.dapancuoicung+"; "+this.noidung+"; ";
	}
	public override bool Equals(Object obj)
	{
	tblBaiThi me=(tblBaiThi)obj;
	bool ret=this.Stt.Equals(me.Stt);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.Stt.GetHashCode();
	}

	}
} 